import Vue from '../vue'
import store from '../vuex/store'
import PortfolioImportTag from '../component/portfolio/import-tag/import-tag.vue'
import PortfolioExportTag from '../component/portfolio/export-tag/export-tag.vue'
import PortfolioList from '../component/portfolio/portfolio-list/portfolio-list.vue'
import loginCheck from '../util/login-check'
import { alert } from 'vue-strap'

new Vue({
  el: 'body',
  components: {
    'vue-portfolio-import-tag': PortfolioImportTag,
    'vue-portfolio-export-tag': PortfolioExportTag,
    'vue-portfolio-list': PortfolioList,
    'vue-alert-msg': alert
  },
  store,
  created() {
    loginCheck(this)
  },
  vuex: {
    getters: {
      msg: state => state.msg,
      menu: state => state.menuList.portfolio
    }
  }
})
